<template>
	<view class="topiclist-container">
		<view class="content">
			<text>{{ content }}</text>
		</view>
		<view class="image">
			<image :src="img_url" mode="widthFix"></image>
		</view>
		<view class="function">
			<view class="share func">
				<uni-icons type="arrow-right" size="21"></uni-icons>
				<text class="functext">分享</text>
			</view>
			<view class="like func">
				<uni-icons type="heart" size="18"></uni-icons>
				<text class="functext">点赞</text>
			</view>
			<view class="comment func">
				<uni-icons type="chatbubble" size="21"></uni-icons>
				<text class="functext">评论</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"Topiclist",
		props: {
			img_url: {
				default: '',
				type: String
			},
			content: {
				default: '',
				type: String
			}
		},
		data() {
			return {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.topiclist-container {
		border-bottom: 4rpx solid #333;
		.content {
			margin-top: 20rpx;
			margin-left: 20rpx;
			margin-bottom: 20rpx;
		}
		.image {
			display: flex;
			justify-content: center;
			align-items: center;
			image {
				width: 90%;
			}
		}
		.function {
			margin: 20rpx auto;
			display: flex;
			align-items: center;
			justify-content: space-evenly;
			width: 95%;
			.func {
				display: flex;
				justify-content: center;
				align-items: flex-start;
				.functext {
					margin-left: 10rpx;
				}
			}
		}
	}
</style>